#include "Stack.h"
void test1()
{
	Stack* a = StackCreat();
	int  n = 0;
	StackPush(a, 1);
	StackPush(a, 2);
	StackPush(a, 3);
	StackPush(a, 4);
	StackPop(a, &n);
	StackPop(a, &n);
	StackPop(a, &n);
	StackPop(a, &n);
	StackPop(a, &n);

	printf("%d\n", n);
	int* cur = a->base;
	while (cur < a->top)
	{
		printf("%d", *cur);
		cur++;
	}
	printf("\n");
	printf("%d", StackGetTop(a));
	StackDestroy(a);
}
int main()
{
	test1();
	return 0;
}
